package cn.wolfcode.service;

import cn.wolfcode.domain.SeckillProductVo;

import java.util.List;


public interface ISeckillProductService {

    List<SeckillProductVo> selectTodayListByTime(Integer time);

    List<SeckillProductVo> selectTodayListByTimeFromRedis(Integer time);

    SeckillProductVo selectByIdAndTime(Long seckillId, Integer time);

    void decrStockCount(Long id,Integer time);

    /**
     * 根据秒杀ID和秒杀场次查询秒杀商品的库存数量
     * @param seckillId 秒杀ID
     * @param time 秒杀场次
     * @return
     */
    int selectStockCountById(Long seckillId);
}
